package com.itheima.mapper;

import com.itheima.domain.Assignment;
import com.itheima.domain.User;
import com.itheima.domain.UserStudentAssignment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AssignmentMapper {
    /**
     * 展示任务
     * @param assignment
     * @return
     */
    List<User> selectWork(Assignment assignment);

    /**
     * 发布作业
     */
    int publishWork(Assignment assignment);

    /**
     * 查询时间段未提交作业的学生以及次数
     */
    List<User> selectWorkCondition(UserStudentAssignment userStudentAssignment);
}
